//
//  TicketPurchaseInfor.m
//  ImGuider
//
//  Created by 王鹏宇 on 2017/12/15.
//  Copyright © 2017年 AudioCtrip. All rights reserved.
//

#import "TicketPurchaseInfor.h"

@implementation TicketPurchaseInfor

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.selectionStyle = UITableViewCellSelectionStyleNone;
    
    self.ticketNameLabel.textColor = kTitleColor;
    self.ticketNameLabel.font = FontBold(17);
    
    [self.tipBtn setTitle:MYLocalizedString(@"TICKET_PHURCHASE_TIP", nil) forState:UIControlStateNormal];
}


- (IBAction)tipBtnClicked:(id)sender {
    
    if (_delegate && [_delegate respondsToSelector:@selector(goPurhchaseTipWith:)]) {
        
        [_delegate goPurhchaseTipWith:self.ticketModel.detail.ticketingNotes];
    }
    
}


- (void)configData:(TicketDetailModel *)ticket {
    
    self.ticketModel = ticket;
    self.ticketNameLabel.text = ticket.title;
    
    [self.ticketImageView   setImageURL:[NSURL URLWithString:ticket.pictureArray.firstObject] placeholderImage:kPlaceholderSqu];
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
